package com.twu.biblioteca;

public class BibliotecaApp {

    private State state;

    public BibliotecaApp() {
        this.state = State.WELCOME_MESSAGE;
    }

    public void run() {
        while (this.state != State.QUIT) {
            System.out.println(this.state.printStateOutput());
            this.state = this.state.processInput(System.in);
        }

        System.out.println(this.state.printStateOutput());
    }

    public static void main(String[] args) {
        new BibliotecaApp().run();
    }
}
